﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pro_Service.aspx.cs" Inherits="Catering.DisplayBoards.Pro_Service" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script src="/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <link href="/Style/DisplayBoard.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/My97DatePicker/WdatePicker.js" type="text/javascript" ></script>
    <script type="text/javascript">
        function RefreshPage() {
            $("#Btn_Ref").trigger("click");
        }

        $(function () {
            $(".Table_2>tbody tr:odd").addClass("Table_Tr_odd");
            var test = setInterval(RefreshPage, 6000);
        });

        //查询
        function Search_Production() {
            var SearchDate = $("#txt_SearchDate").val();
            var Strsrc = window.location.href;
            if (Strsrc.indexOf("Date") > 0) {
                Strsrc = Strsrc.toString().substring(0, Strsrc.indexOf("Date") + 4);
            }
            else {
                Strsrc += "&Date";
            }
            Strsrc += "=" + SearchDate;
            window.location.href = Strsrc + "&Rid=" + Math.random();
        }
    </script>

    <style type="text/css">
        .Title_2{ width:100%; height:27px; background:url(/images/images_24.jpg) repeat-x; margin-top:20px;}
        .Title_2_Left{ width:32px; height:27px; background:url(/images/images_21.jpg) no-repeat; float:left;}
        .Title_2_text{  height:27px; padding:0px 10px; background:url(/images/images_22.jpg) repeat-x; color:#376ae9; font-size:16px; font-weight:bold; float:left; margin-left:20px;}
        
        .Title_3{height:60px; position:relative;}
        .Title_3_Option{ width:80px; height:27px; position:absolute; bottom:5px; right:10px;}
        .Title_3_Option li{ width:27px; height:27px; float:left; margin-left:10px;}
        
        .Table_Item{ width:100%; background-color:#e6eae9;}
        .Table_Item h2{width:100%; height:37px; line-height:37px; font-size:20px; text-align:left; text-indent:2em; background:url(/images/images_27.jpg) no-repeat left; border-bottom:2px solid #fff;}
        .Table_Item p{ text-indent:2em; padding:10px 0px;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="layout" style=" position:relative;">
        <div class="Tab" style="display:none;">
            <ul >
               <%-- <li><a href="ProductionBoard.aspx?AreaID=2" class="<%=(Request.QueryString["AreaID"].ToString()=="2")?"curr":""%>">辽东作业区</a></li>
                <li><a href="ProductionBoard.aspx?AreaID=4" class="<%=(Request.QueryString["AreaID"].ToString()=="4")?"curr":""%>">渤南作业区</a></li>
                <li><a href="ProductionBoard.aspx?AreaID=1" class="<%=(Request.QueryString["AreaID"].ToString()=="1")?"curr":""%>">渤西作业区</a></li>--%>
            </ul>
            <div style=" float:right;">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td><input type="text" id="txt_SearchDate" value="<%=Request.QueryString["Date"]==null?DateTime.Now.ToShortDateString():Request.QueryString["Date"].ToString()%>" onclick="WdatePicker()" style="width:80px;" /> </td>
                        <td><input type="button" id="Btn_Search" value="查询" onclick="Search_Production()" /></td>
                    </tr>
                </table>
           </div>
        </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <asp:Button ID="Btn_Ref" runat="server" Text="" style="width:0px; height:0px; border:0px;" onclick="Btn_Ref_Click" />
        <table border="0" cellpadding="0" cellspacing="1" width="97%" class="Table_2">
             <thead>
                <tr class="Table_2_Title">
                    <td style="position:relative; height:60px; width:150px;">
                        <div style="height: 85px;position: absolute;left: 0px;width: 100%;top: -25px;">
                            <div class="Title">
                                <div class="Title_Left"></div>
                                <div class="Title_Right"></div>
                                <div class="Title_text" style=" height:50px; padding-top:35px;">
                                    序号
                                </div>
                            </div>
                        </div>
                    </td>
                    <td>班组名称</td>
                    <td>作业人数</td>
                    <td>作业类型</td>
                    <td>作业周期</td>
                </tr>
            </thead>
                        <tbody>
                            <asp:Repeater ID="Rep_BanzuDynamic" runat="server">
                                <ItemTemplate>
                                    <tr class="Table_Tr">
                                        <%--<td class="T2"><%#Eval("ClassName")%></td>--%>
                                        <td class="T1"><%#Eval("tmpId")%></td>
                                        <td class="T2"><%#Eval("className")%></td>
                                        <td class="T3"><%#Eval("zuoyerenshu")%></td>
                                        <td class="T2"><%#Eval("zuoyeleixing")%></td>
                                        <td class="T3"><%#Eval("zuoyezhouqi")%></td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                            <%--<tr class="Table_Tr">
                                <td class="T2"></td>
                                <td class="T3"></td>
                                <td class="T2"></td>
                                <td class="T3"></td>
                                <td class="T2"></td>
                            </tr>
                            <tr class="Table_Tr">
                                <td class="T2"></td>
                                <td class="T3"></td>
                                <td class="T2"></td>
                                <td class="T3"></td>
                                <td class="T2"></td>
                            </tr>--%>
                        </tbody>
                    </table>
                </td>
            </tr>
        </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
